<?php /* Smarty version Smarty-3.1.8, created on 2012-06-14 21:53:34
         compiled from "tmpl/crud_template/list.html" */ ?>
<?php /*%%SmartyHeaderCode:6176925824fc491bfc61355-76744785%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '90bf365391d305b7f7ae9fba56d33005234e538c' => 
    array (
      0 => 'tmpl/crud_template/list.html',
      1 => 1339736012,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '6176925824fc491bfc61355-76744785',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4fc491bfc8c4d4_47157998',
  'variables' => 
  array (
    'table' => 0,
    'controller' => 0,
    'table_cols' => 0,
    'col' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4fc491bfc8c4d4_47157998')) {function content_4fc491bfc8c4d4_47157998($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("tmpl/crud_template/header.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


<h2><?php echo $_smarty_tpl->tpl_vars['table']->value;?>
 List</h2>
<a href="<?php echo $_smarty_tpl->tpl_vars['controller']->value;?>
_add.php">Add</a><br>
<table border=1>
<tr>
<?php  $_smarty_tpl->tpl_vars['col'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['col']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['table_cols']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['col']->key => $_smarty_tpl->tpl_vars['col']->value){
$_smarty_tpl->tpl_vars['col']->_loop = true;
?>
<th><?php echo $_smarty_tpl->tpl_vars['col']->value;?>
</th>
<?php } ?>
<th>Detail</th>
</tr>
  
{foreach $list as $col}
<tr>
<?php  $_smarty_tpl->tpl_vars['col'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['col']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['table_cols']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['col']->key => $_smarty_tpl->tpl_vars['col']->value){
$_smarty_tpl->tpl_vars['col']->_loop = true;
?>
<td>{$col.<?php echo $_smarty_tpl->tpl_vars['col']->value;?>
|escape:'html'}</td>
<?php } ?>
<td><a href=<?php echo $_smarty_tpl->tpl_vars['controller']->value;?>
_detail.php?id={$col.id}>Detail</a></td>
</tr>
{/foreach}
</table>

{$pagefooter}

<?php echo $_smarty_tpl->getSubTemplate ("tmpl/crud_template/footer.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php }} ?>